﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.Member.My.Default" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<%if(!MyInfo.IsAffirm||MyInfo.Introduction.Trim()==""||(MyInfo.Avatar.Trim().ToLower() == "/images/no_pic.gif")||String.IsNullOrEmpty(MyInfo.Avatar)) {%>
				<div class="myhome_Palert">
				<ul><%if (!MyInfo.IsAffirm){%><li><%=GetText("MH008")%>. <a href='/user/sendconfirmmail.htm?NickName=<%=MyInfo.Nickname%>' style="color:#ff0000"><%=GetText("MH009")%></a></li><%} %>
				<%if (MyInfo.Introduction.Trim()==""){%><li><%=GetText("MH010")%> <a style="color:#ff0000" href="/my/profile/language.htm"><%=GetText("MH011")%></a></li><%} %>
				<%if ((MyInfo.Avatar.Trim().ToLower() == "/images/no_pic.gif")||String.IsNullOrEmpty(MyInfo.Avatar)){%><li><%=GetText("MH012")%> <a style="color:#ff0000" href="/my/profile/myphoto.htm"><%=GetText("MH013")%></a></li><%} %></ul>
				</div>
				<%}%>
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_BMtitle">
							<table width="640" border="0" cellspacing="0" cellpadding="0">
							  <tr>
								<td rowspan="2" width="90"><a href="/my/profile/myphoto.htm"><%=MyInfo.Avatar==""?"<img src='/Images/no_pic.gif' height='75' width='75' border='0' title='"+GetText("MH015")+"'>":"<img src='"+MyInfo.Avatar+"' height='75' width='75' border='0' >"%></a></td>
								<td><span class="floatl" style="font-size:26px;"><%=MyInfo.Nickname%> <br /><%=UserType=="2"?"<a href='/my/tfeedbacks.htm'><img src='/images/fbapp_level_" + ((decimal)OtherArr[0]).ToString("N0") + ".gif' align='absmiddle'  title='Rating: " + ((decimal)OtherArr[0]).ToString("N1") + "'/></a>":"" %></span>
									<div id="account_info_clearfix" class="floatl" style="padding:10px 0px 0px 10px">
										<!--status 1-->
										<div class="profile_status" id="profile_status" style="display:<%=(MyInfo.Avatar_title==""?"none":"block")%>; margin-top:-5px; "><div class='thoughtbox'><div><div><div><div><a id="status_text" style="text-decoration:none" href="#" onclick="status_editor.show();return false;"><%=MyInfo.Avatar_title%></a> </div></div></div></div></div>
										<div class="edit_text">&nbsp;&nbsp;[ <img src="/Images/icon_common_edit.gif" border="0" align="absmiddle" /> <a href="#" onclick="return status_editor.show();"><%=GetText("C0053")%></a> ]</div>
										</div> 
										<!--status 2-->
										<div id="profile_empty_status" style="display:<%=(MyInfo.Avatar_title==""?"block":"none")%>;"><div class='thoughtbox'><div><div><div><div><a href="#" onclick="return status_editor.show();" id="status_blank_nag"><%=GetText("MH021")%></a></div></div></div></div></div></div>
										<!--status 3-->
										<div id="status_editor" style="display: none;">
											<div class="floatl">
												<div style="float: left;"><input class="inputtext" type="text" id="edit_status_text" name="edit_status_text" value="" maxlength="50" onblur="return status_editor.blur();" onkeypress="return status_editor.handle_key_press(event);" /><a id="edit_status_toggle" href="#" onmousedown="return status_editor.toggle_menu(event);" onclick="return false;">&nbsp;</a></div>
												<div style="position: relative; clear: left">
													<div id="edit_status_select" style="display: none;">
														<div class="status_editor_menu"><a href="#" onmousedown="status_editor.status_select(this.innerHTML);return false;"><%=GetText("MH022")%></a></div>
														<div class="status_editor_menu"><a href="#" onmousedown="status_editor.status_select(this.innerHTML);return false;"><%=GetText("MH023")%></a></div>
														<div class="status_editor_menu"><a href="#" onmousedown="status_editor.status_select(this.innerHTML);return false;"><%=GetText("MH024")%></a></div>
														<div class="status_editor_menu"><a href="#" onmousedown="status_editor.status_select(this.innerHTML);return false;"><%=GetText("MH025")%></a></div>
														<div class="status_editor_menu"><a href="#" onmousedown="status_editor.status_select(this.innerHTML);return false;"><%=GetText("MH026")%></a></div>
														<div class="status_editor_menu"><a href="#" onmousedown="status_editor.status_select(this.innerHTML);return false;"><%=GetText("MH027")%></a></div>
														<div class="status_editor_menu"><a href="#" onmousedown="status_editor.status_select(this.innerHTML);return false;"><%=GetText("MH028")%></a></div>
														<div class="status_editor_menu"><a href="#" onmousedown="status_editor.status_select(this.innerHTML);return false;"><%=GetText("MH029")%></a></div>
													</div>
												</div>
											</div>
											<div class="edit_text status_modify">[ <a href="#" onmousedown="return status_editor.submit_status_clear();" onclick="return false;"><%=GetText("MH030")%></a>&nbsp;|&nbsp;<a href="#" onmousedown="return status_editor.hide();" onclick="return false;"><%=GetText("C0056")%></a> ]</div>
											<div class="clear"></div>
										</div>
										<div class="clear"></div>
									</div>
									<div class="clear"></div>
									<script type="text/javascript">status_editor.setup("<%=MyInfo.Avatar_title%>");</script>
								</td>
							  </tr>
							  <tr>
								<td>
							<div class="text14" style="margin:10px 0px 0px 0px"><a href="/my/profile/personal.htm"><%=GetText("MH031")%></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/my/settings/generalsettings.htm"><%=GetText("M0005")%></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/contacts/invite.htm"><%=GetText("CT016")%></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/answers/ask.htm"><%=GetText("AS002")%></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#">Buy Credit</a></div></td>
							  </tr>
							</table>
							</div>
							<div class="submenuN_button" style="top:25px"><a href="/public/profile.htm" class="specgbtn btnspec" style="text-decoration:none"><span><%=GetText("UR088")%></span></a><br /><select name="" class="btnspec" onchange="if(this.options[this.selectedIndex].value!=''){location=this.options[this.selectedIndex].value;}else{location=location.href;}"><option value="#">More Actions</option><option value="/answers/myqa.htm"><%=GetText("AS018")%></option><option value="/answers/ask.htm"><%=GetText("AS002")%></option><option value="/files/mydocs.htm"><%=GetText("SF014")%></option><option value="/files/upload.htm"><%=GetText("SF203")%></option><option value="/groups/my-groups.htm"><%=GetText("GP001")%></option><option value="/groups/create-group.htm"><%=GetText("GP200")%></option><option value="/knowledge/myknowledge.htm"><%=GetText("WK144")%></option><option value="/knowledge/edit.htm"><%=GetText("WK155")%></option></select></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001Left">
						<div class="right_layerA">
							<div class="layer_contentA">
							<ul class="myhome_notice">
							    <%if(UserType=="1") {%><li><%=GetText("MH016",new string[]{"<a href='/learn-"+MyInfo.TargetLanguage+".htm'>"+BLF.StaticData.GetLanguageText(MyInfo.TargetLanguage)+"</a>","<a href='/learn-"+MyInfo.MotherTongue+".htm'>"+BLF.StaticData.GetLanguageText(MyInfo.MotherTongue)+"</a>"})%></li><%} else{%><li><a href="http://www.craigslist.org">Post a free ad on Craigslist</a> to find new students.</li>
							    <%} %>
							    <li><a href="/translate">Join the translation team and help us improve italki by translating italki into your language</a></li>
							</ul>
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=UserType=="1"?GetText("MH063"):GetText("MH064")%></h4>
								<div class="layer_contentA5">
									<asp:Repeater id="rptMember" Runat="server">
									<ItemTemplate>
										<div class="myhome_userlist">
											<div class="myhome_userlist_av pic50"><a class="photo_50" href="<%#WWWHost %>/<%#Eval("MemberNo") %>.htm"><img src='<%#Eval("Avatar").ToString()==""?"/Images/no_pic.gif":Eval("Avatar").ToString()%>' border="0"></a></div>
											<div class="myhome_userlist_info"><%#(bool)Eval("Online")?"<img src='/Images/online.gif' title='"+GetText("Online Now!")+"'/>":"<img src='/Images/offline.gif' title='"+GetText("Offline")+"' />" %> <a href='<%#WWWHost %>/<%#Eval("MemberNo") %>.htm'><%#Eval("NickName")%></a><br /><span class="grey11"><%#UserType == "2"?GetText("C0103", new string[]{BLF.StaticData.GetLanguageText(Eval("TargetLanguage").ToString())}) :GetText("C0104", new string[]{BLF.StaticData.GetLanguageText(Eval("MotherTongue").ToString())})%><br /><%#GetText("C0102", new string[] { BLF.StaticData.GetCountryText(Eval("Nationality").ToString()) })%></span>
											</div>
											<div class="clear"></div>
										</div>
									</ItemTemplate>
									</asp:Repeater>
									<%if (rptMember.Items.Count==0) {%><%=GetText("MH004")%><br /><a href="/partner/search.htm"><%=GetText("MH005")%></a><%} %>
									<p align="right"><%=UserType=="1"?string.Format("<a href='/partner/speak-{0}.htm'>{1}</a>",MyInfo.TargetLanguage,GetText("C0040")):string.Format("<a href='/partner/learn-{0}.htm'>{1}</a>",MyInfo.TargetLanguage,GetText("C0040"))%> </p>
								</div>
							</div>
						</div>
						<%if(UserType=="1") {%>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("MH062")%></h4>
								<div class="layer_contentA5">
								<p><a href="/widgets/badges.htm"><img id="imcopy" src="/Images/badges/badges_<%=MyInfo.TargetLanguage %>_300.gif" /></a></p>
								<p class="text11"><%=GetText("MH065")%></p>
								</div>
							</div>
						</div>
						<%} %>
						<!--my contacts list end-->
					</div>
					<div class="Center9001Right">
							<div class="center9001content">
								<div class="myhome_area">
									<%if(Countlist[0]>0||Countlist[1]>0||Countlist[2]>0||Countlist[3]>0||Countlist[4]>0) {%>
									<div class="myhome_alert">
										<ul class="tag_common_right">
										    <%if(Countlist[0]>0) {%><li><a style="color:#ff0000" href="<%=WWWHost%>/contacts/mycontacts.htm?op=RECV"><%=GetText("MH301",new string[]{Countlist[0].ToString()}) %></a>&nbsp;&nbsp;</li><%} %>
										    <%if(Countlist[1]>0) {%><li><a style="color:#ff0000" href="<%=WWWHost%>/mail/notifications.htm"><%=GetText("MH302",new string[]{Countlist[1].ToString()}) %></a>&nbsp;&nbsp;</li><%} %>
										    <%if(Countlist[2]>0) {%><li><a style="color:#ff0000" href="<%=WWWHost%>/mail/inbox.htm"><%=GetText("MH303",new string[]{Countlist[2].ToString()}) %></a>&nbsp;&nbsp;</li><%} %>
										    <%if(Countlist[4]>0) {%><li><a style="color:#ff0000" href="<%=WWWHost%>/my/mysessions.htm"><%=GetText("MH304",new string[]{Countlist[4].ToString()}) %></a>&nbsp;&nbsp;</li><%} %>
										    <%if(Countlist[3]>0) {%><li><a style="color:#ff0000" href="<%=WWWHost%>/answers/myqa.htm"><%=GetText("MH305",new string[]{Countlist[0].ToString()}) %></a>&nbsp;&nbsp;</li><%} %>											
										</ul>
										<div class="clear"></div>
									</div>
										<%}%>
									<div class="myhome_tp">
										<div style="margin-bottom:20px"><span class="black18"><%=GetText("TP049")%></span></div>
										<ul>
										    <%=GetMySession() %>
										</ul>
									</div>
									<div class="myhome_recent">
										<h3><%=GetText("PB011")%></h3>
										<ul class="myhome_update">
											<asp:Repeater ID="rptLastEvent" runat="server">
												<ItemTemplate>
													<div class="my_comment">
														<div class="my_comment_avatar Pic50"><a class="photo_50" href='<%#WWWHost %>/<%#Eval("MemberNo1") %>.htm' title="<%#Eval("Nickname") %>" ><img src='<%#Eval("Avatar").ToString()==""?"/Images/no_pic.gif":Eval("Avatar").ToString()%>' border="0"></a></div>
														<div class="my_comment_Bacontent">
															<div class="my_comment_acontent"><span class="grey11"><%#FormatDiffDate(C0035, Eval("DiffLastUpdate").ToString())%></span><div class="margin5D"><%#GetUserLastEventDescrip(Eval("CateID").ToString(),Eval("VarReplace").ToString())%></div></div>
															<div class="Clear"></div>
														</div>
														<div class="Clear"></div>
													</div>
												</ItemTemplate>
											</asp:Repeater>
											<%if (rptLastEvent.Items.Count==0) {%><%=GetText("MH002")%><%} %>
										</ul>
									</div>
									<div class="myhome_blackboard">
										<div style="margin-bottom:10px"><span class="black18"><%=GetText("PB060")%></span>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/mail/blackboard.htm#comment" ><%=GetText("MH046")%></a><span id="View" dir="ltr">(<%=Countlist[5]%>)</span>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/mail/blackboard.htm#commentpost" ><%=GetText("MH047")%></a></div>
										<div class="">
											<!--blackboard started-->
											<div id="MessagesBox" style="display:none">
												<div class="MessagePanel4">
													<img id="MessageImg" src="/images/ico_info.gif" style="border-width: 0px;">
													<div id="MessageText"></div>
												</div>
											</div>
											<div id="Comment">
													<%if(Countlist[5]>0)%><%{ %><div id="content1" class="margin20"></div><%}else{ %><div id="noone" class="margin20"><%=GetText("MH048")%> <a href="/public/profile.htm#comment"><%=GetText("MH049")%></a></div><%} %>
													<div id="CommentList" style="margin-top:20px">
													<asp:repeater id="rptComment" Runat="server" >
													<ItemTemplate>
														<div class="my_comment">
															<div class="my_comment_avatar Pic50"><a class="photo_50" href='<%#WWWHost%>/<%#Eval("userFrom") %>.htm' ><img src='<%#Eval("Avatar").ToString()==""?"/Images/no_pic.gif":Eval("Avatar").ToString()%>' border="0"></a></div>
															<div class="my_comment_Bacontent">
																<div class="my_comment_acontent"><span class="grey11"><%#GetText("C0090",new string[]{"<a href='"+LoginHost+DataBinder.Eval(Container.DataItem, "userFrom","/{0}.htm").ToString()+"'>"+DataBinder.Eval(Container.DataItem, "NickName")+"</a>"})%> <%#FormatDiffDate(GetText("C0035"), Eval("DiffDate").ToString())%></span><div class="margin5D"><%#EncodeMessage(DataBinder.Eval(Container.DataItem, "content").ToString())%></div></div>
																<div class="my_comment_delete"><a href="#" onclick="javascript:delComm('<%#DataBinder.Eval(Container.DataItem, "tcm2Id")%>')" title="<%=GetText("C0050") %>"><img src="/Images/board_delete.gif" border="0" /></a></div>
																<div class="Clear"></div>
															</div>
															<div class="Clear"></div>
														</div>
													</ItemTemplate>
													</asp:repeater>
													</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						<!--blackboard end-->
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
var memberno='<%=HttpContext.Current.User.Identity.Name %>'
var gDateFormat = "<%=GetText("C0033")%>";
var gStrDate2 = "<%=GetText("C0035")%>";
var C0090 = "<%=GetText("C0090")%>";
var MessageTextF="a case of crabs";
var MessageImageF = "/images/ico_info.gif";
var C1008="<%=GetText("C1008") %>";
var C0069 = '<%=GetText("C0069")%>';
var gCancel = "<%=GetText("C0056")%>";
</script>
<div id="CommentTemplate" style="display: none">
	<div class="my_comment">
		<div class="my_comment_avatar Pic50"><a class="photo_50" href='/$userFrom$.htm' >$Avatar$</a></div>
			<div class="my_comment_Bacontent">
				<div class="my_comment_acontent"><span class="grey12">$postby$ $createDate$</span><p>$content$</p></div>
				<div class="my_comment_delete"><a href="#" onclick="javascript:delComm('$tcm2Id$')" title="<%=GetText("C0050") %>"><img src="/Images/board_delete.gif" border="0" /></a></div>
				<div class="Clear"></div>
			</div>
		<div class="Clear"></div>
	</div>
</div>
<div id="CommentNo" style="display: none" class="margin20"><%=GetText("MH048")%> <a href="/public/profile.htm#comment"><%=GetText("MH049")%></a></div>